import {
    createRouter,
    createWebHashHistory
} from 'vue-router'

//登陆页
import Login from '@/views/Login'

//能源管理--能耗总览
import Home from '@/views/Energy/View/Home'
import Cockpit from '@/views/Energy/Cockpit/index'
import ScreenPage from '@/views/Energy/View/ScreenPage'
//能源管理--能耗数据
import Inquire from '@/views/Energy/Data/Inquire'
import Compared from '@/views/Energy/Data/Compared'
import Compared2 from '@/views/Energy/Data/Compared2'
//能源管理--能耗分析
import SubOption2 from '@/views/Energy/Analysis/SubOption2'
import Analysis2 from "@/views/Energy/Analysis/Analysis2"
//能源管理--用能管理
import SubOption from '@/views/Energy/Use/SubOption'
import SubOption3 from '@/views/Energy/Use/SubOption3'
import SubOption4 from '@/views/Energy/Use/SubOption4'
import SubOption5 from '@/views/Energy/Use/SubOption5'
//系统管理-运维配置引入
import StaffManage from '@/views/Sysmanage/Operaconfig/staffManage'
import RoleManage from '@/views/Sysmanage/Operaconfig/roleManage'
import DepManage from '@/views/Sysmanage/Operaconfig/depManage'
import WareManage from '@/views/Sysmanage/Operaconfig/wareManage'
import WarePermission from '@/views/Sysmanage/Operaconfig/warePermission'
import MaintainHour from '@/views/Sysmanage/Operaconfig/maintainHour'
import MaintainPro from '@/views/Sysmanage/Operaconfig/maintainPro'
import PlaceManage from '@/views/Sysmanage/Operaconfig/placeManage'
import PhoneManage from '@/views/Sysmanage/Operaconfig/phoneManage'
//系统管理-用户信息引入
import ChangePwd from '@/views/Sysmanage/Userinfo/changePwd'
import LoginLog from '@/views/Sysmanage/Userinfo/loginLog'
//系统管理-新闻配置
import AddNews from '@/views/Sysmanage/Newsconfig/addNews'
import NewsProgram from '@/views/Sysmanage/Newsconfig/newsProgram'
import News from '@/views/Sysmanage/Newsconfig/news'
//====
import Edit from '@/views/Sysmanage/Newsconfig/pages/edit'
import Search from '@/views/Sysmanage/Newsconfig/pages/search'

//运维管理-报修管理
import GdOrderRepair from '@/views/OperaManage/Repair/gdOrderRepair'
import Gdclosing from '@/views/OperaManage/Repair/gdClosing'
import GdAcceptanceSP from '@/views/OperaManage/Repair/gdAcceptanceSP'
import GdOrders from '@/views/OperaManage/Repair/gdOrders'
import GdImplement from '@/views/OperaManage/Repair/gdImplement'
import ProductionOrders from '@/views/OperaManage/Repair/productionOrders'
//运维管理-巡检管理
import InspectItem from '@/views/OperaManage/Inspection/inspectItem'
import InspectContent from '@/views/OperaManage/Inspection/inspectContent'
import InspectLine from '@/views/OperaManage/Inspection/inspectLine'
import InspectPlan from '@/views/OperaManage/Inspection/inspectPlan'
import InspectManage from '@/views/OperaManage/Inspection/inspectManage'
import InspectAbnormal from '@/views/OperaManage/Inspection/inspectAbnormal'
//运维管理-工程仓库
import Provider from '@/views/OperaManage/Engineer/provider'
import GoodsCate from '@/views/OperaManage/Engineer/goodsCate'
import Goods from '@/views/OperaManage/Engineer/goods'
import EnterWarehouse from '@/views/OperaManage/Engineer/enterWarehouse'
import OutofWarehouse from '@/views/OperaManage/Engineer/outofWarehouse'
import Stock from '@/views/OperaManage/Engineer/stock'
import LedgerRep from '@/views/OperaManage/Engineer/ledgerRep'
import MaterialRep from '@/views/OperaManage/Engineer/materialRep'
import CarryOver from '@/views/OperaManage/Engineer/carryOver'
//运维管理-设备管理
import EquipLedger from '@/views/OperaManage/Equipment/equipLedger'
import EquipAttr from '@/views/OperaManage/Equipment/equipAttr'
import Definition from '@/views/OperaManage/Equipment/definition'
import Template from '@/views/OperaManage/Equipment/template'
import Lifetime from '@/views/OperaManage/Equipment/lifetime'
import Warn from '@/views/OperaManage/Equipment/warn'
import Dictionary from '@/views/OperaManage/Equipment/dictionary'
//运维管理-知识库管理
import KnowledgeUphold from '@/views/OperaManage/Knowledge/knowledgeUphold'
import KnowledgeSearch from '@/views/OperaManage/Knowledge/knowledgeSearch'
//告警设置
import WarnAlarm from '@/views/Warnning/warnAlarm'
import WarnHistory from '@/views/Warnning/warnHistory'
import WarnSet from '@/views/Warnning/warnSet'
import WarnTime from '@/views/Warnning/warnTime'
//设备监控-暖通空调系统
import ColdHeat from '@/views/EquipMonitor/HVAC/coldHeat'
import AirConditioning from '@/views/EquipMonitor/HVAC/airConditioning'
import FanCoil from '@/views/EquipMonitor/HVAC/fanCoil'
//设备监控-智能监控系统
import LowVoltage from '@/views/EquipMonitor/Monitor/lowVoltage'
import PublicLighting from '@/views/EquipMonitor/Monitor/publicLighting'
import LandLighting from '@/views/EquipMonitor/Monitor/landLighting'
import WaterHeater from '@/views/EquipMonitor/Monitor/waterHeater'
import ElevatorMonitor from '@/views/EquipMonitor/Monitor/elevatorMonitor'
import SquareFountain from '@/views/EquipMonitor/Monitor/squareFountain'
import Drainage from '@/views/EquipMonitor/Monitor/drainage'
import ElectricSunShade from '@/views/EquipMonitor/Monitor/electricSunShade'


const routes = [
    {    
        path: '/search',
        component: Search,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Newsconfig/pages/search')
    },
    {
        path: '/edit',
        component: Edit,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Newsconfig/pages/edit')
    },
    //设备监控-智能监控系统
    {
        path: '/electric-sun-shade',
        component: ElectricSunShade,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/Monitor/electricSunShade.vue')
    },
    {
        path: '/drainage',
        component: Drainage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/Monitor/drainage.vue')
    },
    {
        path: '/square-fountain',
        component: SquareFountain,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/Monitor/squareFountain.vue')
    },
    {
        path: '/elevator-monitor',
        component: ElevatorMonitor,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/Monitor/elevatorMonitor.vue')
    },
    {
        path: '/water-heater',
        component: WaterHeater,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/Monitor/waterHeater.vue')
    },
    {
        path: '/land-lighting',
        component: LandLighting,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/Monitor/landLighting.vue')
    },
    {
        path: '/public-lighting',
        component: PublicLighting,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/Monitor/publicLighting.vue')
    },
    {
        path: '/low-voltage',
        component: LowVoltage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/Monitor/lowVoltage.vue')
    },

    //设备监控-暖通空调系统
    {
        path: '/fan-coil',
        component: FanCoil,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/HVAC/fanCoil.vue')
    },
    {
        path: '/air-conditioning',
        component: AirConditioning,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/HVAC/airConditioning.vue')
    },
    {
        path: '/cold-heat',
        component: ColdHeat,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/EquipMonitor/HVAC/coldHeat.vue')
    },
    //告警设置
    {
        path: '/warn-time',
        component: WarnTime,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Warnning/warnTime.vue')
    },
    {
        path: '/warn-set',
        component: WarnSet,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Warnning/warnSet.vue')
    },
    {
        path: '/warn-history',
        component: WarnHistory,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Warnning/warnHistory.vue')
    },
    {
        path: '/warn-alarm',
        component: WarnAlarm,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Warnning/warnAlarm.vue')
    },
    //运维管理-知识库管理
    {
        path: '/knowledge-search',
        component: KnowledgeSearch,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Knowledge/knowledgeSearch.vue')
    },
    {
        path: '/knowledge-uphold',
        component: KnowledgeUphold,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Knowledge/knowledgeUphold.vue')
    },
    //运维管理-设备管理
    {
        path: '/dictionary',
        component: Dictionary,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Equipment/dictionary.vue')
    },
    {
        path: '/warn',
        component: Warn,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Equipment/warn.vue')
    },
    {
        path: '/life-time',
        component: Lifetime,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Equipment/lifetime.vue')
    },
    {
        path: '/template',
        component: Template,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Equipment/template.vue')
    },
    {
        path: '/definition',
        component: Definition,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Equipment/definition.vue')
    },
    {
        path: '/equip-attr',
        component: EquipAttr,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Equipment/equipAttr.vue')
    },
    {
        path: '/equip-ledger',
        component: EquipLedger,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Equipment/equipLedger.vue')
    },
    //运维管理-工程仓库
    {
        path: '/carry-over',
        component: CarryOver,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Engineer/carryOver.vue')
    },
    {
        path: '/material-rep',
        component: MaterialRep,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Engineer/materialRep.vue')
    },
    {
        path: '/ledger-rep',
        component: LedgerRep,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Engineer/ledgerRep.vue')
    },
    {
        path: '/stock',
        component: Stock,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Engineer/stock.vue')
    },
    {
        path: '/out-of-warehouse',
        component: OutofWarehouse,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Engineer/outofWarehouse.vue')
    },
    {
        path: '/enter-warehouse',
        component: EnterWarehouse,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Engineer/enterWarehouse.vue')
    },
    {
        path: '/goods',
        component: Goods,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Engineer/goods.vue')
    },
    {
        path: '/goods-cate',
        component: GoodsCate,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Engineer/goodsCate.vue')
    },
    {
        path: '/provider',
        component: Provider,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Engineer/provider.vue')
    },
    //运维管理-巡检管理
    {
        path: '/inspect-abnormal',
        component: InspectAbnormal,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Inspection/inspectAbnormal.vue')
    },
    {
        path: '/inspect-manage',
        component: InspectManage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Inspection/inspectManage.vue')
    },
    {
        path: '/inspect-plan',
        component: InspectPlan,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Inspection/inspectPlan.vue')
    },
    {
        path: '/inspect-line',
        component: InspectLine,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Inspection/inspectLine.vue')
    },
    {
        path: '/inspect-content',
        component: InspectContent,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Inspection/inspectContent.vue')
    },
    {
        path: '/inspect-item',
        component: InspectItem,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Inspection/inspectItem.vue')
    },
    //运维管理-报修管理
    {
        path: '/production-orders',
        component: ProductionOrders,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Repair/productionOrders.vue')
    },
    {
        path: '/gd-implement',
        component: GdImplement,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Repair/gdImplement.vue')
    },
    {
        path: '/gd-orders',
        component: GdOrders,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Repair/gdOrders.vue')
    },
    {
        path: '/gd-acceptance-sp',
        component: GdAcceptanceSP,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Repair/gdAcceptanceSP.vue')
    },
    {
        path: '/gd-closing',
        component: Gdclosing,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Repair/gdClosing.vue')
    },
    {
        path: '/gd-order-repair',
        component: GdOrderRepair,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/OperaManage/Repair/gdOrderRepair.vue')
    },
    //系统管理-新闻配置
    {
        path: '/news',
        component: News,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Newsconfig/news.vue')
    },
    {
        path: '/news-program',
        component: NewsProgram,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Newsconfig/newsProgram.vue')
    },
    {
        path: '/add-news',
        component: AddNews,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Newsconfig/addNews.vue')
    },
    //系统管理-运维配置
    {
        path: '/login-log',
        component: LoginLog,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Userinfo/loginLog.vue')
    },
    {
        path: '/change-pwd',
        component: ChangePwd,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Userinfo/changePwd.vue')
    },
    //系统管理-运维配置
    {
        path: '/phone-manage',
        component: PhoneManage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Operaconfig/phoneManage.vue')
    },
    {
        path: '/place-manage',
        component: PlaceManage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Operaconfig/placeManage.vue')
    },
    {
        path: '/maintain-pro',
        component: MaintainPro,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Operaconfig/maintainPro.vue')
    },
    {
        path: '/maintain-Hour',
        component: MaintainHour,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Operaconfig/maintainHour.vue')
    },
    {
        path: '/ware-permission',
        component: WarePermission,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Operaconfig/warePermission.vue')
    },
    {
        path: '/ware-manage',
        component: WareManage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Operaconfig/wareManage.vue')
    },
    {
        path: '/dep-manage',
        component: DepManage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Operaconfig/depManage.vue')
    },
    {
        path: '/staff-manage',
        component: StaffManage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Operaconfig/staffManage.vue')
    },
    {
        path: '/role-manage',
        component: RoleManage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Sysmanage/Operaconfig/roleManage.vue')
    },
    {
        path: '/login',
        component: Login,
    },
    //主页
    {
        path: "/",
        redirect: "/home"
    },
    //能源管理--总览
    {
        path: '/home',
        component: Home,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/View/Home.vue')
    },
    {
        path: '/cockpit',
        component: Cockpit,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Cockpit/index.vue')
    },
    {
        path: '/screen',
        component: ScreenPage,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/View/ScreenPage.vue')
    },
    //能源管理--数据
    {
        path: '/inquire',
        component: Inquire,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Data/Inquire.vue')
    },
    {
        path: '/compared',
        component: Compared,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Data/Compared.vue')
    },
    {
        path: '/compared2',
        component: Compared2,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Data/Compared2.vue')
    },
    //能源管理--分析
    {
        path: '/sub-option2',
        component: SubOption2,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Analysis/SubOption2.vue')
    },
    {
        path: '/analysis2',
        component: Analysis2,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Analysis/Analysis2')
    },
    //能源管理--用能管理
    {
        path: '/sub-option',
        component: SubOption,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Use/SubOption')
    },
    {
        path: '/sub-option3',
        component: SubOption3,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Use/SubOption3')
    },
    {
        path: '/sub-option4',
        component: SubOption4,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Use/SubOption4')
    },
    {
        path: '/sub-option5',
        component: SubOption5,
        component: () => import( /* webpackChunkName: "liangshan" */  '../views/Energy/Use/SubOption5')
    },
]


const router = createRouter({
    history: createWebHashHistory(),
    routes
})


export default router
